Creating Refills

  So, you've decided to pack some files up, and publish them on the net. Packing refills is an easy task, but at places you will need the advice that I'm gonna give here. Remember one thing in life from me: no matter how much knowledge you have, you might learn even from the most ignorant people. So, please bear with be through this tutorial.
Refill technology
  Refills are not something new, but here they're a little more different. Most noticeably, they can contain refills inside. Let's assume some things:
    c:\Dreamer\ is where you installed DR
    c:\Dreamer\Refills is the directory, where all refills get placed.
    c:\Dreamer\Refills\Tsunami.Refill is the main soundbank.
Let's say we have the file "SomeDir\wavefile.wav", that is inside the soundbank. The full path to it is:
    "c:\Dreamer\Refills\Tsunami.Refill?SomeDir\wavefile.wav"
As you noticed, the delimiter is "?", which means this: Split the whole filename in two, at the place of the "?". The part on the right shows the virtual path to the packed file, and the left part shows part of which refill the virtual file on the right is. You might have not understood. In other words, imagine this "?" is in fact a "\" ! So, you can also have:
    "c:\Dreamer\Refills\Tsunami.Refill?SomeDir\MySecondRefill.Refill?zombie.wav"

Packing normal files
  Go to the Dreamer main menu Tools->RefillPacker . You will see a dialog box with three textfields. You needn't write in the first textfields! With the first button that has a folder image on it, you browse a source folder. All files and folders in that folder will be packed in a new refill. Assume we choose "c:\waves", and that folder will have only one file, "test.wav". The new refill will thus have a file name "waves.Refill". Now, choose copyright image for the refill. The Dreamer Browser will help you choose wisely :P, providing a preview of the selected picture. Note that the refill image should be 128x128 pixels, but you can use any size, Dreamer will automatically resize it. Anyway, 128x128 is recommended. Now, write some copyright text in the third textbox. Press "Pack it". The dialog will not close, it has a purpose. You will be greeted if the refill gets successfully packed. To close the dialog, press "OK" lol. Note that the refill will probably not be created in your "Dreamer\Refills" directory. It will be created in the directory from which you started Dreamer! To make it write directly to the \Refills folder, you will have to start DR through a shortcut, that has its "Start in" value set to "c:\Dreamer\Refills". Existing refills will be overwritten without notify! Power is sometimes cruel, isn't it :).

Packing instrument patches
  This is the only tricky thing in refill packin'. See, when a patch gets saved, it will have such info: "Load 'Guitars.Refill?Overdrive\ogt_C4.wav'". So, it uses the "Guitars.Refill". But does not specify where to find it, nor other stuff. Another possibility of info in a patch is "Load 'c:\my_collection\strings.wav'". Here, this is not a file from a refill, so the whole path gets specified. If you are going to publish the refill, you will never use such files. You will only use files that are in the refill that you'll pack, or in another refill. I'll teach you now how to create the "Guitars.Refill" with an Akemi patch of "Overdrive guitar". Suppose this patch will consist of only one wave, the "ogt_C4.wav". Now, create some folder that will hold the refill data. "C:\to_pack\Guitars". Now, create the sub-folder "Overdrive" there. Put the "ogt_C4.wav" into "C:\to_pack\Guitars\Overdrive". Start Dreamer, and run the RefillPacker from Tools->RefillPacker. Select "C:\to_pack\Guitars" as source folder. If you want, put info image and text. Then press "Pack it". Now, seek for the file "Guitars.Refill". Usually, you'll find it in "C:\Dreamer\" . Move it to the Refills directory, if it isn't there already. Create a new empty song, then create one Akemi in it. Now, load into Akemi the wave file "c:\Dreamer\Refills\Guitars.Refill?Overdrive\ogt_C4.wav". It must be there, or otherwise you have not followed my previous instructions. Now, after you've loaded the wave, you can setup the ADSR envelopes of Akemi if you want. Right-click over Akemi, and select "Save Patch..." . Save the patch as "C:\to_pack\Guitars\Overdrive\Overdrive.Akemi". Now, pack the 'Guitars.Refill' again. RefillPacker should have memorized your previous settings for packing, so you will probably need only to press "pack it". Note: While you are packing a refill and its patches, you may do whatever actions you want, between whichever steps of the tutorial you want. This means that while you're packing a refill, you can listen/record/edit other songs with Dreamer, or the song where our targeted Akemi with the new patch is located. I suggest that you start Dreamer from its "\Refills" folder, with a shortcut, then load your favourite ".Dream" song or mp3 or ogg or CD that will 'give you energy' while you're packing, then create an empty song with 1 Akemi, and you have Windows Explorer having opened "c:\to_pack\Guitars" and you have the RefillPacker dialog always shown. I do pack this way, and it is the fastest way to successful pack.


A small copyright note: in songs, you can contain wavefiles that have been taken from refills. First you might think that this is a bad idea, but it really isn't. I'm talking about copyrights and published .dream songs . And I am talking about refills that are being sold. The copyright of this refill will be ok unless the artist renames the wave file! See, refills give license for the artist as long as he doesn't give the wave file away, but he is allowed to use the wave in a complete song, from which the wave can't be taken. Dreamer does not provide saving of contained local files into disk, and does not allow migration of one imported sample from one song to another. However, if an artist publishes a song that is in full-access format, and no other format, and this song contains a file, taken from a commercial refill, and this file is contained in the song, then this artist is infringing the law, unless he has been given the appropriate authorisation from the refill's creator(s).
  Be intelligent. Respect others, then they'll respect you. Try to appreciate other people's work, or be gone.